import i18n from '@commonProject/i18n'

export function translateTitle(title) {
  // console.log(`'${title}':'${title}',`)
  const { t, te } = i18n.global
  if (te(`${title}`)) return t(`${title}`)
  return title
}
